package com.jd.log.clollector.web;

import com.alibaba.fastjson.JSON;
import com.jd.log.clollector.entity.AccurateWatcherMessage;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WatcherController {


    /**
     * watcher kibana配置定时推送一次
     * @return
     */
    public String watch(@RequestBody AccurateWatcherMessage watcherMessage){
        System.out.println("-------------------"+watcherMessage);
        String ret= JSON.toJSONString(watcherMessage);
        return "is watched"+ret;
    }


}
